// eslint-disable-next-line no-unused-vars
import Vue from 'vue'
import Vuex from 'vuex'
// eslint-disable-next-line no-unused-vars
// eslint-disable-next-line no-undef
Vue.use(Vuex)
// eslint-disable-next-line no-new
// eslint-disable-next-line no-unused-vars
const store = new Vuex.Store({
  state: {
    count: 1,
    poot: 'http://39.106.115.9:8082/',
    user: '',
    leixing: 0,
    yx: '',
    gwc: false,
    gwcsz: 0,
    gerenindex: 0,
    blogsousuo: ''
  },
  mutations: {
    xgblogsousuo(state, num) {
      state.blogsousuo = num
    },
    xgleixing(state, num) {
      state.leixing = num
    },
    xggerenindex(state, num) {
      state.gerenindex = num
    },
    xguser(state, num) {
      state.user = num
    },
    xggwcsz(state, num) {
      state.gwcsz = num
    },
    userxg(state, us) {
      state.user = us
    },
    yxxg(state, us) {
      state.yx = us
    }
  },
  getters: {
    getUserInfo() {
      return this.zhuantai
    }
  }
})
export default store
